﻿#include <QCoreApplication>
#include <QTextStream>


int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    QTextStream strOut(stdout);
    strOut.setEncoding(QStringConverter::Utf8);
    QString str = a.tr("你好");
    strOut << str << Qt::endl;

    return a.exec();
}
